package com.hxkj.client.service;

import com.platform.common.domain.result.ResultMessageStruct;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * 生成静态页面定时任务  chenfangzhou
 */
@FeignClient(name = "cms-article")
public interface ScheduleTaskServiceClient {

    @RequestMapping(value = "/page/genChannelPage", method = RequestMethod.POST,consumes  ="application/json;charset=UTF-8")
    ResultMessageStruct genChannelPage(@RequestBody String params) throws Exception;

    @RequestMapping(value = "/page/genLeafletPage", method = RequestMethod.POST,consumes  ="application/json;charset=UTF-8")
    ResultMessageStruct genLeafletPage(@RequestBody String params) throws Exception;

    //定时任务生成文章静态页
    @RequestMapping(value = "/page/genArticlePage" , method = RequestMethod.POST,consumes  ="application/json;charset=UTF-8")
    ResultMessageStruct genArticlePage(@RequestBody String params) throws Exception;

    //定时任务生成分类静态页
    @RequestMapping(value = "/page/genColumnPage" , method = RequestMethod.POST,consumes  ="application/json;charset=UTF-8")
    ResultMessageStruct genColumnPage(@RequestBody String params) throws Exception;

    //定时任务生成Tags详情静态页
    @RequestMapping(value = "/page/genTagsPage" , method = RequestMethod.POST,consumes  ="application/json;charset=UTF-8")
    ResultMessageStruct genTagsPage(@RequestBody String params) throws Exception;

    //定时任务生成全站静态页
    @RequestMapping(value = "/page/genTotalSitePage" , method = RequestMethod.POST,consumes  ="application/json;charset=UTF-8")
    ResultMessageStruct genTotalSitePage(@RequestBody String params) throws Exception;
}
